package com.lichao.FinkDataProcess.rel;



import com.alibaba.fastjson.JSONObject;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public abstract class RelNode implements Node, Serializable {

    private List<Node> childNodes;

    public void init() {
        childNodes = new ArrayList<>();
    }

    public void add(Node node) {
        childNodes.add(node);
    }

    public List<Node> getChildNodes() {
        return childNodes;
    }

    public abstract boolean apply(JSONObject json) throws Exception;
}
